import Vue from 'vue'
let v = new Vue()

let Alerts = (mode, msg) => {
    switch (mode) {
        case 0:
            v.$message(msg);
            break;
        case 1:
            v.$message({
                message: msg,
                type: 'success'
            });
            break;
        case 2:
            v.$message({
                message: msg,
                type: 'warning'
            });
            break;

        default:
            break;
    }


}

export default {
    Alerts,
}


